/*//显示对话框
// @Bind #btnDeviceEdit.onClick
!function() {
	var dialog = this.get("#dialogText");
	dialog.show();
};*/

// 执行保存按钮
// @Bind #btnsaveDeviceEdit.onClick
!function() {
	var dataSetDeviceEdit = view.get("#dataSetDeviceEdit");
	var action = view.get("#updateActionDeviceEdit");
	action.execute(function(result) {
		dataSetDeviceEdit.flush();
		dorado.MessageBox.alert(result);
	});
};

// 执行增加设备
// @Bind #btnDeviceAdd.onClick
!function() {
	/*
	 * var if1 = view.get("#if1");
	 * if1.set("path","my.code.view.DeviceManagement.d");
	 */
	var dialog = this.get("#dialogText1");
	dialog.show();

};

// 删除数据对话框
// @Bind #btnDeviceDelete.onClick
!function() {
	var dialog = this.get("#dialogTextDelete");
	dialog.show();

};

// 编辑数据对话框
// @Bind #btnDeviceEdit.onClick
!function() {
	var dialog = this.get("#dialogTextEdit");
	dialog.show();
};
